package com.huawei.gamebox.service.common.cardkit.card;

import android.content.Context;
import android.os.Build.VERSION;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.cgz;
import o.ContentManager;
import o.epv;
import o.exp$a;
import o.exp.d;

public class TabNaviBlankCard extends BaseGsCard {
    private View ˎ;

    public TabNaviBlankCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        ʽ(view);
        this.ˎ = view.findViewById(d.ʾ);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        LayoutParams layoutParams = (FrameLayout.LayoutParams) this.ˎ.getLayoutParams();
        if (layoutParams == null) {
            layoutParams = new FrameLayout.LayoutParams(-1, -2);
        }
        layoutParams.height = ˊ();
        this.ˎ.setLayoutParams(layoutParams);
    }

    protected int ˊ() {
        Context ˋ = ContentManager.getInstant().getContext();
        int dimensionPixelSize = ˋ.getResources().getDimensionPixelSize(exp$a.ˋˊ);
        if (epv.ʼ(this.ˎ.getContext())) {
            dimensionPixelSize += ˋ.getResources().getDimensionPixelSize(exp$a.ˈ);
        }
        if (VERSION.SDK_INT >= 23) {
            return dimensionPixelSize + epv.ॱ();
        }
        return dimensionPixelSize;
    }
}
